package com.example.springboot.entity;

import java.sql.Date;
import java.sql.Time;

public class events {
    private Long event_id;
    private String title;
    private String description;
    private Date event_date;
    private Time event_time;
    private String location;
    private Long organizer_id;

    // getters and setters
    public Long getEvent_id() {
        return event_id;
    }
    public void setEvent_id(Long event_id) {
        this.event_id = event_id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public Date getEvent_date() {
        return event_date;
    }
    public void setEvent_date(Date event_date) {
        this.event_date = event_date;
    }
    public Time getEvent_time() {
        return event_time;
    }
    public void setEvent_time(Time event_time) {
        this.event_time = event_time;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }

    public Long getOrganizer_id() {
        return organizer_id;
    }
    public void setOrganizer_id(Long organizer_id) {
        this.organizer_id = organizer_id;
    }
    // 创建时间，默认当前时间
    private Date created_at;

    // 更新时间，默认当前时间
    private Date updated_at;

}
